<%@ page import="aqv.PoliticalParty" %>



<div class="fieldcontain ${hasErrors(bean: politicalPartyInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="politicalParty.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${politicalPartyInstance?.name}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: politicalPartyInstance, field: 'description', 'error')} required">
	<label for="name">
		<g:message code="politicalParty.description.label" default="description" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="description" required="" value="${politicalPartyInstance?.description}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: politicalPartyInstance, field: 'cantOfPoliticians', 'error')} required">
	<label for="cantOfPoliticians">
		<g:message code="politicalParty.cantOfPoliticians.label" default="Cant Of Politicians" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="cantOfPoliticians" type="number" value="${politicalPartyInstance.cantOfPoliticians}" required=""/>

</div>

<%--<div class="fieldcontain ${hasErrors(bean: politicalPartyInstance, field: 'politician', 'error')} ">--%>
<%--	<label for="politician">--%>
<%--		<g:message code="politicalParty.politician.label" default="Politician" />--%>
<%--		--%>
<%--	</label>--%>
<%--	--%>
<%--<ul class="one-to-many">--%>
<%--<g:each in="${politicalPartyInstance?.politician?}" var="p">--%>
<%--    <li><g:link controller="politician" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>--%>
<%--</g:each>--%>
<%--<li class="add">--%>
<%--<g:link controller="politician" action="create" params="['politicalParty.id': politicalPartyInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'politician.label', default: 'Politician')])}</g:link>--%>
<%--</li>--%>
<%--</ul>--%>
<%----%>
<%----%>
<%--</div>--%>

